import { def } from "./untils";
import defineReactive from './defineReactive'
export default class Observer {
    constructor(value) {
        def(value, '__ob__', this) //这里的this表示的是实例本身   
        this.walk(value)
    }
    walk(value) {
        for (let k in value) {
            defineReactive(value, k)
        }
    }
}